pub(crate) fn ram_banks(value: u8) -> usize {
    match value {
        1 => 1,
        2 => 1,
        3 => 4,
        4 => 16,
        5 => 8,
        _ => 0,
    }
}

pub(crate) fn rom_banks(value: u8) -> usize {
    if value <= 8 {
        2 << value
    } else {
        0
    }
}
